package com.projectm.common.to;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author linyanbin
 * @date 2022/8/11 21:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Email对象", description="")
@Component
public class Email implements Serializable {

    private static final long serialVersionUID = 1L;

    @Value("${spring.mail.username}")
    @ApiModelProperty(value = "发送人邮箱")
    private String userName;
}
